import React from 'react';
import logo from './logo.svg';
import TodoContainer from './TodoContainer'
import UserProfile from './UserProfile'
import './App.css';

function App() {
  const [userId, setUserId] = useState(1)
  const handleChange = (ev) => {
    setUserId(ev.target.value)
  }
  return (
    <div className="App-header">
      <img src={logo} className="App-logo" alt="logo" />
      <div>
        <a
        className="App-link"
        href="https://reactjs.org"
        target="_blank"
        rel="noopener noreferrer"
      >
          React入门待办事项
      </a>
    </div>
    <TodoContainer />
    userId:
    <input type="text" value={userId} onChange={handleChange} />
    <UserProfile userId={userId} />
  </div>
  );
}

export default App;
